Taking a swab from periodontal pockets or gingival sulci